{% extends 'base.html'%}

{% block content %}

  Friend page  <a href="/users/profile/"  class="current"><b onmouseout="this.style.color = 'black';" onmouseover="this.style.color = '#0BB359';" align="justify">back to Profile</b></a>
       <img src="/my-media/thumbnails/xmlimg5.jpg" a /> <!--Content-->

    <b color = '#0BB359';><p>Welcome to Social Stock Market</p></b>
   
    <p>hello {{user.username}} you can view all your friends from here</p>
   <table >

    <tr><th>FriendName</th><th>FriendDetail</th></tr>

{% for n in request %}


        <tr><td>{{ n.from_friend }}</td>
 
{% ifequal n.confirmed 0 %}		 
        <td><a href="/users/fri_confirm/{{n.from_friend}}"? rel='lyteframe' title='Now viewing request' rev='width: 600px; height: 200px; scrolling: no;'>Confirm Friend</a></td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/users/fri_reject/{{n.from_friend}}"? rel='lyteframe' title='Now viewing request' rev='width: 600px; height: 200px; scrolling: no;'>Reject Friend</a></td>


</tr>
     {% else %}

        <td><a  href="/users/fri_details/{{n.from_friend}}"? rel='lyteframe[catalog]' title='Now viewing request' rev='width: 600px; height: 500px; scrolling: yes;'>Friend details</a></td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/users/fri_delete/{{n.from_friend}}"? rel='lyteframe' title='Now viewing request' rev='width: 600px; height: 200px; scrolling: no;' >Delete Friend</a></td>

{% endifequal %}
{%endfor%}

{% for f in friend %}


{% ifequal f.confirmed 1 %}	
<tr>        <td>{{ f.to_friend }}</td>	 

        <td><a  href="/users/fri_details/{{f.to_friend}}"? rel='lyteframe[catalog]' title='Now viewing request' rev='width: 600px; height: 500px; scrolling: yes;'>Friend details</a></td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/users/fri_delete/{{f.to_friend}}"? rel='lyteframe' title='Now viewing request' rev='width: 600px; height: 200px; scrolling: no;' >Delete Friend</a></td>
</tr>

{% endifequal %}
{%endfor%}

    </table>

{%endblock%}